/*
 * scal.cpp
 *
 * Version: $Id: scal.cpp 43 2011-10-28 19:10:38Z s8376@pjwstk.edu.pl $
 */
#include <iostream>
using namespace std;

int* scal(int* tablica1, int dlugosc1, int* tablica2, int dlugosc2)
{
    int* output = new int[dlugosc1 + dlugosc2];
    int index = 0;

    for (int i = 0; i < dlugosc1; i++) {
        output[index] = tablica1[i];
        index++;
    }

    for (int i = 0; i < dlugosc2; i++) {
        output[index] = tablica2[i];
        index++;
    }

    return output;
}
void arrayWrite(int* tab, int size)
{
    for (int i = 0; i < size; i++) {
        cout << i + 1 << ". " << tab[i] << endl;
    }
}
